package org.example.AI;


/**
 * @author: 默苍璃
 * @date: 2024-07-18 10:46
 */
// 终结符表达式：数字表达式
public class NumberExpression implements Expression {
    private int number;

    public NumberExpression(int number) {
        this.number = number;
    }

    @Override
    public int interpret(Context context) {
        return number;
    }
}